package com.yuand.service.impl;

import com.yuand.entity.SysDictType;
import com.yuand.mapper.SysDictTypeMapper;
import com.yuand.service.SysDictTypeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 字典类型表 服务实现类
 * </p>
 *
 * @author yuandong
 * @since 2022-02-11
 */
@Service
public class SysDictTypeServiceImpl extends ServiceImpl<SysDictTypeMapper, SysDictType> implements SysDictTypeService {

    @Autowired
    private SysDictTypeMapper sysDictTypeMapper;

    /**
     * 查询字典类型类别
     * @param dictType
     * @return
     */
    public List<SysDictType> selectDictTypeList(SysDictType dictType){
        return this.sysDictTypeMapper.selectDictTypeList(dictType);
    }

    /**
     * 根据字典type的id查询
     * @param dictId
     * @return
     */
    public SysDictType selectDictTypeById(Long dictId){
        return this.sysDictTypeMapper.selectById(dictId);
    }

}
